cmake_minimum_required(VERSION 2.6.3)

set(TEST_LOGGER_DEPENDENCY
	"logger" 	
    "pthread"
    ${Boost_LIBRARIES}
)

include_directories(
	${logger_SOURCE_DIR}
	${Boost_INCLUDE_DIRS}
)

set(TEST_SOURCE "TestRunner.cpp")

add_executable(TestLogger "TestLogger" ${TEST_SOURCE}) 
target_link_libraries(TestLogger ${TEST_LOGGER_DEPENDENCY})
ADD_TEST(TestLogger ${CMAKE_CURRENT_BINARY_DIR}/TestLogger)


add_executable(TestBuilder "TestBuilder.cpp" ${TEST_SOURCE}) 
target_link_libraries(TestBuilder ${TEST_LOGGER_DEPENDENCY})
ADD_TEST(TestBuilder ${CMAKE_CURRENT_BINARY_DIR}/TestLogger)

add_executable(Benchmark "Benchmark.cpp") 
target_link_libraries(Benchmark ${TEST_LOGGER_DEPENDENCY})
